package com.gitee.xhs.windowState;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

/**
 * @author BigHead
 * @date 2022/7/8 14:02
 * @description TransactionCounterDao
 */
public class TransactionCounterDao {

    private boolean isInit = true;
    private long accountId;
    private Long startTime;
    private Long endTime;
    private Double sumAmount;

    public boolean isInit() {
        return isInit;
    }

    public void setInit(boolean init) {
        isInit = init;
    }

    public long getAccountId() {
        return accountId;
    }

    public void setAccountId(long accountId) {
        this.accountId = accountId;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public Double getSumAmount() {
        return sumAmount;
    }

    public void setSumAmount(Double sumAmount) {
        this.sumAmount = sumAmount;
    }

    @Override
    public String toString() {
        return "TransactionCounterDao{" +
                "isInit=" + isInit +
                ", accountId=" + accountId +
                ", startTime=" + startTime +
                ", startTimeString='" + DateUtil.formatDateTime(new Date(startTime)) + "'" +
                ", endTime=" + endTime +
                ", endTimeString='" + DateUtil.formatDateTime(new Date(endTime)) + "'" +
                ", sumAmount=" + sumAmount +
                '}';
    }
}
